import { $get } from '@js/request'
import { ConditionSchema } from '../schema/condition';
import { ArbitratorSchema } from '../schema/arbitrator';

export async function getArbitratorRequest (condition: ConditionSchema[], page: number, limit: number): Promise<{ list: ArbitratorSchema[], total: number }> {
  const res = await $get('/api/commission/arbitrator', {
    condition: JSON.stringify(condition),
    page,
    limit
  })
  return res.data
}
